package com.example.mapper;

import com.example.DTO.OrderselectDTO;
import com.example.DTO.ShoppingCartDTO;
import com.example.entity.Order;
import com.example.entity.Product;
import com.example.entity.ShoppingCart;
import com.example.vo.ShoppingCartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartMapper {

    List<ShoppingCartVO> selectShCartById(Integer buyerId);
    void deleteShopcart(@Param("buyerid") Integer buyerid, @Param("productid") Integer productid);

    void delShoppingCartBatch(List<Integer> ids);

    boolean selectBybIdpId(ShoppingCartDTO shoppingCartDTO);

    void addShoppingCart(ShoppingCart shoppingCart,int amount);

    void updateShoppingCart(ShoppingCart shoppingCart,int amount);
}
